import request from '@/utils/request'


// 分页模糊查询

export const healtheducationPageList=(page,limit,queryDto)=>{
    return request({
        url:`/admin/healtheducation/healtheducation/findHealtheducation/${page}/${limit}`,
        method:'get',
        params:queryDto
    })
}

//软删除
export const Delhealtheducation = (id) => {
    return request({
        url:`/admin/healtheducation/healtheducation/delHealtheducation/${id}`,
        method: 'delete'
    })
}

// 添加
export const Savehealtheducation = healtheducation => {
    return request({
      url: `/admin/healtheducation/healtheducation/save`,
      method: 'post',
      data: healtheducation,
    })
}

//查询全部科室
export const findDivision = () => {
    return request({
      url: `/admin/zhou/findDivision`,
      method: 'get',
    })
  }




  //查询发送人员
  export const findUsers = () => {
    return request({
      url: `/admin/Users/Users/findUsers`,
      method: 'get',
    })
  }



// 目标人群
  export const findPopulation = () => {
    return request({
      url: `/admin/Population/Population/findPopulation`,
      method: 'get',
    })
  }


  // 修改信息
export const Updatehealtheducation = healtheducation => {
  return request({
      url: `/admin/healtheducation/healtheducation/Updatehealtheducation`,
      method: 'put',
      data: healtheducation,
  })
}





 